package com.flying.invest.invest;

import com.flying.framework.annotation.ConstantEnum;

public enum TransactionType implements ConstantEnum<Integer> {
	BUY(1, "买入"), SELL(-1, "卖出");

	public final int value;
	public final String remarks;

	TransactionType(int value, String remarks) {
		this.value = value;
		this.remarks = remarks;
	}
	
	@Override
	public Integer value() {
		return this.value;
	}

	@Override
	public String text() {
		return remarks;
	}
}
